package com.mss.media.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mss.media.dto.CommentsPageDTO;
import com.mss.media.entity.MediaComments;
import com.mss.media.vo.CommentsAuditPageVO;

/**
 * @Author 湫
 * @Date 2021/12/28 11:39
 * Name IMediaCommentsService
 */
public interface IMediaCommentsService extends IService<MediaComments> {
    /**
     * 评论分页信息
     * @param dto 筛选条件
     * @return 分页数据
     */
    IPage<CommentsAuditPageVO> findCommentsPage(CommentsPageDTO dto);

    /**
     * 更改评论状态
     *
     * @param commentsId 评论主键
     * @param commentsStatus 状态
     * @return 状态
     */
    Boolean updateCommentsStatus(Long commentsId, Integer commentsStatus);
}
